package net.hmr_radio.hmrbot.controller.test;

import java.util.Set;

import net.hmr_radio.hmrbot.service.MessageService;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

public class ParseController extends Controller {

    private MessageService messageService = new MessageService();

    @Override
    public Navigation run() throws Exception {

        Set<String> words = messageService.parse(param("message"));
        requestScope("words", words);

        return forward("index.jsp");
    }
}
